import './assets/main.css'
// 引入createApp函数
import { createApp } from 'vue'
// 引入App.vue页面
import App from './App.vue'
// 引入element-plus的所有组件
import ElementPlus from 'element-plus'
// 引入element-plus的样式
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import router from "@/assets/router-index.js";
import "@/assets/axios-config.js"
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import { createPinia } from 'pinia'


const pinia = createPinia()

//使用createApp函数转化App.vue页面为标准的html页面
const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
//将element-plus组件注册到app中
app.use(ElementPlus, {
    locale: zhCn,
})
app.use(router)
app.use(pinia)
app.mount('#app')


